<?php

/**
 * Mapping table [cdb_forums]
 *
 * @category   app_M
 * @package    app_M
 * @author     
 * @copyright  Copyright (c)
 * @license
 */
class Forumfields extends Zend_Db_Table
{
    /**
     * The table name.
     *
     * @var string
     */
	protected function _setup()
	{
		$config = Zend_Registry::get('config');
		$this->_name = $config->db->config->prcode.'forumfields';
		$this->_request = new Zend_Controller_Request_Http();
		parent::_setup();
	}
	
	/**
      *根据$fid从cdb_forumfields取出版块的详细信息
      */
	public function category_getforumfields($fid = 0){
		 $where = $this->getAdapter()->quoteInto('fid = ?', $fid);
		 $rowset =  $this->fetchRow($where);
		 return $rowset->toArray();
	}
	
	
}